<%@page import="br.senai.sc.entity.Aluno"%>
<%@page import="java.util.List"%>
<%@page import="br.senai.sc.controller.AlunoController"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<form
		action="${pageContext.request.contextPath}/salvarMateria?cmd=salvarMateria"
		method="post">
		<c:if test="${not empty aluno}">
			<input readonly='readonly' name="idMateria"
				value="${materia.idMateria}">
		</c:if>

		<table>
			<tr>
				<td>Nome</td>
				<td><input name="nome" value="${materia.nome}" /></td>
			</tr>
			<tr>
				<td>CPF</td>
				<td><input name="cpf" value="${materia.descricao}" /></td>
			</tr>
		
		</table>



		<table border="1">
			<tr>
				<td>Matricula</td>
				<td>Nome</td>

			</tr>
			<c:forEach items="${alunos}" var="aluno">
				<tr>
					<td><input type="checkbox" value="${umaVariavel=umaVariavel+1}"></td>
					<td>${aluno.matricula}</td>
					<td>${aluno.nome}</td>
				</tr>
				

			</c:forEach>
			<tr>
					<td><input type="submit" name="Salvar" /></td>
					<td></td>
				</tr>
		</table>
	</form>

</body>
</html>